package com.xianbeiying.app.ckgl.photo.util;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;

import com.xianbeiying.app.ckgl.photo.activity.PhotoPickerActivity;


/**
 * 选择图片Intent跳转参数设置
 */
public class PhotoPickerIntent extends Intent {

    private PhotoPickerIntent() {
    }

    private PhotoPickerIntent(Intent o) {
        super(o);
    }

    private PhotoPickerIntent(String action) {
        super(action);
    }

    private PhotoPickerIntent(String action, Uri uri) {
        super(action, uri);
    }

    private PhotoPickerIntent(Context packageContext, Class<?> cls) {
        super(packageContext, cls);
    }

    public PhotoPickerIntent(Context packageContext) {
        super(packageContext, PhotoPickerActivity.class);
    }

    public void setPhotoCount(int photoCount) {
        this.putExtra(PhotoPickerActivity.EXTRA_MAX_COUNT, photoCount);
    }

    //是否显示gif图片
    public void setShowGif(boolean showGif) {
        this.putExtra(PhotoPickerActivity.EXTRA_SHOW_GIF, showGif);
    }

    public void setFather_postion(int father_postion) {
        this.putExtra(PhotoPickerActivity.FATHER, father_postion);
    }

    //  写游记当中父类postion  来确定给那条游记加入图片
    public void setFather_sun_postion(int father_sun_postion) {
        this.putExtra(PhotoPickerActivity.FATHER_SUN, father_sun_postion);
    }

    public void setMultiChoose(boolean multiChoose) {
        this.putExtra(PhotoPickerActivity.EXTRA_MULTI_CHOOSE, multiChoose);
    }

}
